﻿@model ScmAssessmentitemsViewModel
@{
    Layout = null;
    ViewBag.Title = "考核项列表";
}
<script type="text/javascript">
    $(document).ready(function () {
        $(".combox").val("@ViewBag.numPerPage");
    });
</script>
@using (Html.BeginForm("SplitPage", "ScmAssessmentitems", null, FormMethod.Post, new { id = "pagerForm", onsubmit = "return divSearch(this, 'xtgl_khxgl_list');" }))
{
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@(ViewBag.numPerPage)" />
    <input type="hidden" name="Type" value="@(ViewBag.Type)" />
    <ul class="searchBar">
        <li><span>考核项目：</span>
            <input type="text" name="iput_name" value="@(ViewBag.iput_name)" />
        </li>
        <li>
            <button type="submit" class="btn btn-success btn-xs">
                搜索</button>
        </li>
    </ul>
}
<div class="panelBar" style="border-top: none;">
    <ul class="toolBar">
        <li><a class="add" href="@Url.Action("Add", "ScmAssessmentitems", new { type = ViewBag.Type })"  mask="true" target="dialog" width="400" height="400" rel="xtgl_zdgl_add" title="添加">
            <span>添加</span></a></li>
        <li><a class="delete"  href="@Url.Action("SubDelete", "ScmAssessmentitems", new { ids = "{tr_id}" })" title="确定要删除这些记录吗?" target="ajaxTodo" callback="function(){$('#pagerForm', navTab.getCurrentPanel()).submit();}">
            <span>删除</span></a></li>
        <li><a class="delete"  href="@Url.Action("SubDelete", "ScmAssessmentitems")" title="确定要删除这些记录吗?" target="selectedTodo" rel="ids" postType="string" callback="function(){$('#pagerForm', navTab.getCurrentPanel()).submit();}">
            <span>批量删除</span></a></li>
        <li><a class="edit"  href="@Url.Action("Edit", "ScmAssessmentitems", new { id = "{tr_id}" })" mask="true" target="dialog" width="400" height="400" rel="xtgl_zdgl_edit" warn="请选择一条信息">
            <span>修改</span></a></li>
    </ul>
</div>
<table class="table" width="100%" layouth="122" rel="xtgl_khxgl_list">
    <thead>
        <tr>
            <th width="20" align="center">
                <input type="checkbox" group="ids" class="checkboxCtrl">
            </th>
            <th width="30" align="center">
                序号
            </th>
            <th width="200" align="center">
                考核项目
            </th>
            <th width="50" align="center">
                项目排序
            </th>
            <th width="50" align="center">
                项目总分
            </th>
        </tr>
    </thead>
    <tbody>
        @{ int num = (ViewBag.pageNum - 1) * ViewBag.numPerPage;}
        @foreach (ScmAssessmentitemsInfo info in Model.TheAssessmentitemsList)
        {
            num += 1;
            <tr target="tr_id" rel="@info.Ai_ID" align="center">
                <td>
                    <input name="ids" value="@info.Ai_ID" type="checkbox">
                </td>
                <td align="center">@num
                </td>
                <td align="center">@info.Ai_Project
                </td>
                <td align="center">@info.Ai_Order
                </td>
                <td align="center">@info.Ai_AllScore
                </td>
            </tr>
        }
    </tbody>
</table>
<div class="panelBar" style="border-bottom: none;">
    <div class="pages">
        <span>显示</span>
        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'xtgl_khxgl_list')">
            <option value="10">10</option>
            <option value="20" selected="selected">20</option>
            <option value="50">50</option>
        </select>
        <span>条，共@(ViewBag.pagenumshown)页,@(ViewBag.totalcount)条</span>
    </div>
    <div class="pagination" rel="xtgl_khxgl_list" totalcount="@(ViewBag.totalcount)" numperpage="@(ViewBag.numPerPage)" pagenumshown="10" currentpage="@(ViewBag.pageNum)">
    </div>
</div>
